package com.jcl.cloud.common.service.constant;



public enum TaskRouteEnum {


    QCWY("qcwy", "前程无忧"),
    ZLZP("zlzp", "智联招聘");

    private String code;
    private String desc;

    private TaskRouteEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    public static TaskRouteEnum explain(String code) {
        TaskRouteEnum[] enumArr = values();
        int length = enumArr.length;

        for(int i = 0; i < length; ++i) {
            TaskRouteEnum taskRouteEnum = enumArr[i];
            if (taskRouteEnum.code.equals(code)) {
                return taskRouteEnum;
            }
        }

        return null;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
